﻿using Abp.AutoMapper;
using Batman.Jianbei.Forum.Core.Domains.Dicts;
using System.ComponentModel.DataAnnotations;

namespace Batman.Jianbei.Forum.Controllers.Dicts.PartitionInputs
{
    [AutoMap(typeof(Topic))]
    public class TopicCreateInput
    {
        /// <summary>
        /// 话题名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 话题描述
        /// </summary>
        [MaxLength(120)]
        public string Description { get; set; }

        /// <summary>
        /// 是否上线（生效）
        /// </summary>
        public bool IsOnline { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int? Sort { get; set; }

        /// <summary>
        /// 归属分区
        /// </summary>
        [Required]
        public string PartitionId { get; set; }
    }
}
